package com.eastfair.venueservice.service;

import com.eastfair.boot.service.SuperService;
import com.eastfair.venueservice.dto.ServiceProviderCreditDTO;
import com.eastfair.venueservice.entity.ServiceProviderCredit;
import com.eastfair.venueservice.vo.ServiceProviderCreditVO;

/**
 * <p>
 * 业务接口
 * 服务商信用表
 * </p>
 *
 * @author lyw
 * @date 2022 -08-11
 */
@Deprecated
public interface ServiceProviderCreditService extends SuperService<ServiceProviderCredit> {

  /**
   * 查询服务商星级分
   *
   * @param serviceProviderId the service provider id
   * @return service provider credit by id
   */
  ServiceProviderCreditVO getServiceProviderCreditVOById(Long serviceProviderId);

  /**
   * 添加服务商信用星级分
   *
   * @param serviceProviderCreditDTO the service provider credit dto
   * @return boolean
   */
  Boolean saveServiceProviderCredit(ServiceProviderCreditDTO serviceProviderCreditDTO);

  /**
   * 修改服务商信用星级分
   *
   * @param serviceProviderCreditDTO the service provider credit dto
   * @return boolean
   */
  Boolean updateServiceProviderCredit(ServiceProviderCreditDTO serviceProviderCreditDTO);

  /**
   * 更新服务商信用分值.
   *
   * @param serviceProviderCreditDTO the service provider credit dto
   * @return the boolean
   */
  boolean updateCreditScore(ServiceProviderCreditDTO serviceProviderCreditDTO);
}
